<?php

if (isset($_POST)) {

	include_once './db_bb_connect.php';

	$entry_ID = $_POST['entry_ID'];

	$sql = "DELETE FROM video_other_visibility WHERE ID = '$entry_ID'";

	if($db->query($sql)) {

		echo "<td colspan='3' class='text-center alert alert-danger'> This visibilty has been successfully removed </td>";

	} else {
	    echo "Error: " . $sql . "<br>" . $db->error;
	}  
} 

?>